import api from "./";
//二维码 key 生成接口
export function getKey() {
  return api({
    method: "GET",
    url: `/login/qr/key?timeout=${new Date().getTime()}`,
  });
}
//二维码生成接口
export function getQr(key) {
  return api({
    method: "GET",
    url: `/login/qr/create?key=${key}&timeout=${new Date().getTime()}`,
  });
}
//二维码检测扫码状态接口
export function getQrStatus(key) {
  return api({
    method: "POST",
    url: `/login/qr/check?key=${key}&timeout=${new Date().getTime()}`,
  });
}
